package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_jieshi_patrons", autoSave = true)
public class LogJieShiPatrons {

    @FieldTypeAnnotation(desc = "活动Id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "变更前门客列表")
    private String beforePatrons;

    @FieldTypeAnnotation(desc = "变更后门客列表")
    private String afterPatrons;

    @FieldTypeAnnotation(desc = "变更前总武力")
    private long beforeAttack;

    @FieldTypeAnnotation(desc = "变更后总武力")
    private long afterAttack;

    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogJieShiPatrons(int activityId, long userId, String beforePatrons, String afterPatrons, long beforeAttack, long afterAttack) {
        this.activityId = activityId;
        this.userId = userId;
        this.beforePatrons = beforePatrons;
        this.afterPatrons = afterPatrons;
        this.beforeAttack = beforeAttack;
        this.afterAttack = afterAttack;
        this.time = new Date();
    }
}
